<?php if(!empty($list)){?>
<?php foreach($list as $v){?>
    <tr>
        <td><input type="checkbox" name="del[]" value="<?php echo $v['user_id']?>" /></td>
        <td><?php echo $v['user_id']?></td>
        <td><?php echo $v['user_name']?></td>
        <td><?php echo $v['user_password']?></td>
        <td><?php echo $v['user_role']?></td>
        <td><a href="index.php?act=user&op=del&user_id=<?php echo $v['user_id']?>" onclick="return confirm('确定删除吗？')">删除</a> | <a href="index.php?act=user&op=edit&user_id=<?php echo $v['user_id']?>">编辑</a></td>
    </tr>
<?php }}else{?>
暂无数据
<?php }?>